package com.owen.java.spi;

import com.owen.java.spi.service.Shout;

import java.util.ServiceLoader;

public class SpiTest {

    public static void main(String[] args) {
        ServiceLoader<Shout> shouts=ServiceLoader.load(Shout.class);
        for(Shout shout:shouts){
            shout.shout();
        }
    }

}
